package com.ruoyi.iot.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 设备类型监测对象 fac_devices_monitor
 * 
 * @author rww
 * @date 2024-06-19
 */
public class FacDevicesMonitor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private Long typeId;

    /** 数据存储方式（字段存储、单表存储） */
    @Excel(name = "数据存储方式", readConverterExp = "字=段存储、单表存储")
    private String dataClass;

    /** 监测表名 */
    @Excel(name = "监测表名")
    private String tableName;

    /** 数据表前缀(分表类型标识) */
    @Excel(name = "数据表前缀(分表类型标识)")
    private String tablePrefix;

    /** 上级id */
    @Excel(name = "上级id")
    private Long pid;

    /** 监测信息描述 */
    @Excel(name = "监测信息描述")
    private String tableDesc;

    /** 是否识别 */
    @Excel(name = "是否识别")
    private Boolean isIdentify;

    private List<FacDevicesMonitorParam> fieldList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setDataClass(String dataClass) 
    {
        this.dataClass = dataClass;
    }

    public String getDataClass() 
    {
        return dataClass;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setTablePrefix(String tablePrefix) 
    {
        this.tablePrefix = tablePrefix;
    }

    public String getTablePrefix() 
    {
        return tablePrefix;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setTableDesc(String tableDesc) 
    {
        this.tableDesc = tableDesc;
    }

    public String getTableDesc() 
    {
        return tableDesc;
    }
    public void setIsIdentify(Boolean isIdentify) 
    {
        this.isIdentify = isIdentify;
    }

    public Boolean getIsIdentify() 
    {
        return isIdentify;
    }

    public List<FacDevicesMonitorParam> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<FacDevicesMonitorParam> fieldList) {
        this.fieldList = fieldList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("dataClass", getDataClass())
            .append("tableName", getTableName())
            .append("tablePrefix", getTablePrefix())
            .append("pid", getPid())
            .append("tableDesc", getTableDesc())
            .append("isIdentify", getIsIdentify())
            .toString();
    }
}
